package com.xiepei.day01;

public class InsertClass {
    public static void main(String[] args) {
        Animal animal = new Animal(){
            @Override
            public void eat() {
                System.out.println("内部类实现吃东西");
            }
            @Override
            public void run() {
                System.out.println("内部类实现跑");
            }
        };
        animal.eat();
        animal.run();
    }
}
